<?php
namespace app\main\controller;
class DefaultController extends \app\base\controller\DefaultController{
    public $website;

	public function __construct(){
		parent::__construct();
        $condition['url'] = COME_URL;
		$website = model('website','admin')->_find($condition); 
		$website = filter_string($website,array(),1);
        $this->website = $website?$website:model('setting','cms')->_select();
    }

	public function index(){
        $default_tpl = $this->website['tpl_index']?$this->website['tpl_index']:'default/index';
		$this->WebDisplay($default_tpl);
	}
	
}